package com.amazon.shop.controller;

import cn.hutool.core.util.StrUtil;
import com.amazon.shop.bean.dto.BaseDTO;
import com.amazon.shop.bean.entity.RelUserStore;
import com.amazon.shop.bean.vo.Ret;
import com.amazon.shop.service.HomeService;
import com.amazon.shop.service.IRelUserStoreService;
import com.amazon.shop.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * 创建时间：14:34 2021/1/28
 *
 * @author lzj
 * @since JDK 1.8.0_171
 * 类说明：
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ---------------------------------------------------------*
 */
@RestController
@RequestMapping("/home")
public class HomeController {
    @Autowired
    private HomeService homeServiceImpl;



    /**
     * 统计数据
     * @return
     */
    @RequestMapping("/sts")
    public Ret stsdata(BaseDTO baseDTO){
        String operatorUserid = baseDTO.getOperatorUserid();
        Integer ismanager = baseDTO.getOismanager();
        return homeServiceImpl.stsdata(operatorUserid,ismanager);
    }
}
